package com.imooc.service;

import com.imooc.bo.VlogBO;
import com.imooc.pojo.Vlog;
import com.imooc.util.PagedGridResult;
import com.imooc.vo.IndexVlogVO;

import java.util.List;

public interface VlogService {

    public void createVlog(VlogBO vlogBO);

    /**
     * 查询首页/搜索的vlog列表
     */
    public PagedGridResult getIndexVlogList(String userId,String search, Integer page, Integer pageSize);

    IndexVlogVO getVlogDetailById(String userId, String vlogId);

    public void changeToPrivateOrPublic(String userId,
                                        String vlogId,
                                        Integer yesOrNo);

    public PagedGridResult queryMyVlogList(String userId,
                                           Integer page,
                                           Integer pageSize,
                                           Integer yesOrNo);

    void userLikeVlog(String userId, String vlogId);

    public void userUnLikeVlog(String userId, String vlogId);

    public Integer getVlogBeLikedCounts(String vlogId);

    public PagedGridResult getMyLikedVlogList(String userId,
                                              Integer page,
                                              Integer pageSize);

    public PagedGridResult getMyFollowVlogList(String myId,
                                               Integer page,
                                               Integer pageSize);

    public PagedGridResult getMyFriendVlogList(String myId,
                                               Integer page,
                                               Integer pageSize);

    public Vlog getVlog(String id);

    public void flushCounts(String vlogId, Integer counts);
}
